package com.mascotikas.client.services;

import java.util.List;

import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;
import com.mascotikas.client.jdos.ImageInfo;
import com.mascotikas.shared.Tag;
import com.mascotikas.shared.UploadedImage;

@RemoteServiceRelativePath("images")
public interface IUserImageService extends RemoteService {

    public String getBlobstoreUploadUrl();

    public UploadedImage get(String key);

    public List<UploadedImage> getRecentlyUploaded();

    public List<UploadedImage> getRecentlyUploadedByCategory(String category);

    public List<UploadedImage> getImagesByOwnerId(String ownerId);

    public void deleteImage(String key);

    public String tagImage(Tag tag);

    public String setDataImage(ImageInfo infoImage);

    public List<Tag> getTagsForImage(UploadedImage image);

    public UploadedImage updateUploadImageCategory(String key, String category);
}
